<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<div>
    <div>
        <span>${name}</span>
        <a href="/user/info">查看个人中心</a>
    </div>
    <%--展示分类--%>
    <div>
        <c:forEach items="${categories}" var="category">
            <a href="/category/info?id=${category.id}">${category.name}</a>
        </c:forEach>
    </div>
    <div>
        <%--展示文章详情--%>
        <h1>${post.title}</h1>
        <p>${post.text}</p>
        <span>点击量</span><span>${post.click}</span>
        <a href="${post.url}">${post.url}</a>
    </div>
</div>

</body>
</html>
